import request from '@/utils/request'

// 查询菜单列表
export function listMenu(data) {
  return request({
    url: '/usersystemmenu/page',
    method: 'post',
    data: data
  })
}

// 查询菜单详细
export function getMenu(query) {
  return request({
    url: `/usersystemmenu/detail?id=${query}`,
    method: 'get',

  })
}

// 新增(修改)菜单
export function AddorUpdateMenu(data) {
  return request({
    url: '/usersystemmenu/submit',
    method: 'post',
    data: data
  })
}

// 删除菜单
export function delMenu(ids) {
  return request({
    url: `/usersystemmenu/remove?ids=${ids}`,
    method: 'post',
  })
}